<template>
  <view class="AppListContent">
    <view class="viewSlogan">
      <view class="SloganImg">
        <img src="https://s1.ax1x.com/2023/06/26/pCUTOaT.png" alt="" />
      </view>
    </view>
    <view class="Common">
      <h2>办公</h2>
      <nut-row :gutter="10">
        <nut-col :span="6">
          <nut-cell size="large" round-radius="10" is-link>
            <template v-slot:default>
              <view class="appMeta">
                <img
                  style="width: 50px; height: 50px"
                  src="https://s1.ax1x.com/2023/06/26/pCU4ilt.png"
                />
                <text class="AppText">待办</text>
              </view></template
            >
          </nut-cell>
        </nut-col>
        <nut-col :span="6">
          <nut-cell size="large" round-radius="10" is-link>
            <template v-slot:default>
              <view class="appMeta">
                <img
                  style="width: 50px; height: 50px"
                  src="https://s1.ax1x.com/2023/06/26/pCU4PSI.png"
                />
                <text class="AppText">待办</text>
              </view>
            </template>
          </nut-cell>
        </nut-col>
        <nut-col :span="6">
          <nut-cell size="large" round-radius="10" :center="true" is-link>
            <template v-slot:default>
              <view class="appMeta">
                <img
                  style="width: 50px; height: 50px"
                  src="https://s1.ax1x.com/2023/06/26/pCU4ilt.png"
                />
                <text class="AppText">待办</text>
              </view>
            </template>
          </nut-cell>
        </nut-col>
        <nut-col :span="6">
          <nut-cell size="large" round-radius="10" is-link>
            <template v-slot:default>
              <view class="appMeta">
                <img
                  style="width: 50px; height: 50px"
                  src="https://s1.ax1x.com/2023/06/26/pCU4ilt.png"
                />
                <text class="AppText">待办</text>
              </view>
            </template>
          </nut-cell>
        </nut-col>
      </nut-row>
    </view>
    <view class="statistics">
      <h2>统计</h2>
      <nut-row :gutter="10">
        <nut-col :span="6">
          <nut-cell
            size="large"
            round-radius="10"
            is-link
            @click="handleEcharts()"
          >
            <template v-slot:default>
              <view class="appMeta">
                <img
                  style="width: 50px; height: 50px"
                  src="https://s1.ax1x.com/2023/06/26/pCUISxI.png"
                />
                <text class="AppText">图表</text>
              </view></template
            >
          </nut-cell>
        </nut-col>
        <nut-col :span="6">
          <nut-cell size="large" round-radius="10" is-link>
            <template v-slot:default>
              <view class="appMeta">
                <img
                  style="width: 50px; height: 50px"
                  src="https://s1.ax1x.com/2023/06/26/pCU5f54.png"
                />
                <text class="AppText">趋势</text>
              </view>
            </template>
          </nut-cell>
        </nut-col>
        <nut-col :span="6">
          <nut-cell size="large" round-radius="10" :center="true" is-link>
            <template v-slot:default>
              <view class="appMeta">
                <img
                  style="width: 50px; height: 50px"
                  src="https://s1.ax1x.com/2023/06/26/pCU49fA.png"
                />
                <text class="AppText">分析</text>
              </view>
            </template>
          </nut-cell>
        </nut-col>
        <nut-col :span="6">
          <nut-cell size="large" round-radius="10" is-link>
            <template v-slot:default>
              <view class="appMeta">
                <img
                  style="width: 50px; height: 50px"
                  src="https://s1.ax1x.com/2023/06/26/pCUIKs0.png"
                />
                <text class="AppText">数据</text>
              </view>
            </template>
          </nut-cell>
        </nut-col>
      </nut-row>
    </view>
  </view>
</template>

<script lang="ts" setup>
import {} from "vue";
import needLoginHook from "@/utils/needLoginHook";
import Taro from "@tarojs/taro";
// 登录判断
needLoginHook();
function handleEcharts() {
  Taro.navigateTo({
    url: "/pages/charts/index",
  });
}
</script>

<style lang="scss">
page {
  height: 100%;
}
.AppListContent {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(at top right, #84b2e8 30%, #f3f7ff);
  .Common {
    margin: 0 30px;
  }
  .statistics {
    margin: 0 30px;
  }
  .viewSlogan {
    height: 20%;
    margin: 0 30px;
    padding-top: 30px;
    margin-bottom: 50px;
    .SloganImg {
      height: 100%;
      background-color: #f3f7ff;
      border-radius: 25px;
      img {
        width: 100%;
        height: 100%;
        border-radius: 25px;
      }
    }
  }
}
.nut-grid-item__content--border {
  border-radius: 20rpx;
}
.appMeta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nut-cell {
  justify-content: space-evenly;
}
</style>
